package com.zhz.livegoods.details.config;

import com.zhz.livegoods.acche.config.RedisCacheConfig;
import org.springframework.cache.CacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

/**
 * @author zhz
 * @date 2020/08/05
 **/
@Configuration
public class DetailsConfig extends RedisCacheConfig {
    /**
     * 创建缓存管理器
     * @param redisConnectionFactory Redis连接工厂
     * @return
     */
    @Bean
    public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory){
        return super.cacheManager(redisConnectionFactory);
    }
}
